package com.lyEducation.entities.middle.userVideo;

import com.lyEducation.entities.base.BaseTreeEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "user_video_comment", schema = "db_wsfpro", catalog = "")
public class UserVideoCommentEntity extends BaseTreeEntity {
    private String comment;
    //    id-userId
//    private String userId;
    private String videoId;
    //点赞总数
    private int score;

    @Column(name = "comment", length = 255)
    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Id
    @Column(name = "videoId", nullable = false, length = 18)
    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    @Column(name = "score", nullable = false)
    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
